package com.example.demo.controller;

import com.example.demo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Qualifier("userInfo")
    @Autowired
    private UserInfo userInfo;
    public void sayHi(){
        System.out.println("hello, user controller...");
    }
}
